Problems with tag O(n * logk)